package hci.utils;

import java.awt.Graphics2D;

import javax.swing.JComponent;

/**
 * simple class for handling points
 * @author Michal
 *
 */
public class Point extends JComponent {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Graphics2D g2d;
	private int x = 0;
	private int y = 0;
	
	public Point() {
	}
	
	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public void setG2d(Graphics2D g2d) {
		this.g2d = g2d;
	}

	public Graphics2D getG2d() {
		return g2d;
	}
	
}
